import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import axios from 'axios'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';

Vue.use(ElementUI);



Vue.config.productionTip = false

axios.defaults.baseURL = 'http://127.0.0.1:8000/book/'
// axios.interceptors.request.use((req) => {
//   req.headers['token'] = localStorage.getItem('token') || ''
//   console.log(req)

//   return req
// })


new Vue({
  router,
  store,
  render: function (h) { return h(App) }
}).$mount('#app')
